package com.dyh.quickdemozwei.beanOrder;

import com.google.common.collect.Lists;
import com.sun.jna.platform.win32.OaIdl;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.time.DateUtils;
import org.springframework.util.StringUtils;

import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;

public class A {



    public static class F{

    }

    public static class C extends F{

    }

    @Setter@Getter
    public static class W{
        Consumer<? extends F> consumer;


    }

    public static void main(String[] args) throws ParseException {

        Consumer<C> cConsumer = e-> System.out.println("c");

        W w = new W();
        w.setConsumer(cConsumer);


//        LocalDate ld = LocalDate.now(); // get the current date

//        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
//        Date d =  sdf.parse(sdf.format(new Date()));
//
//        System.out.println();

        Date date = DateUtils.addDays(new Date(),-624);

        System.out.println();

//        BigDecimal bd1 = new BigDecimal("12.129");
//
//
//        System.out.println(bd1.multiply(new BigDecimal(100)).intValue());
    }

}
